<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>协议</title>
<style>
/*样式表文件来自 懒人css http://lrcss.lrjz100.com */
/*---------重置---------*/
html{font-size: 100%;-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;	*overflow:auto;_overflow-x:hidden;}
body{margin:0;}
p,ul,ol,form,dl,h1,h2,h3,h4,h5,h6{ margin-top:0; margin-bottom:0;}
dl,dd{ margin-left:0;}
ul,ol{padding-left:0;*margin-left:0;list-style-type: none;}
ul li{*zoom:1;*vertical-align:bottom;}
em,var,cite,i{font-style:normal;}
small{font-size:inherit;}
s,a{text-decoration:none;}
:focus{outline:none;}
blockquote,q{quotes:none; margin:0;}
table{border-collapse:collapse;border-spacing:0;empty-cells:show;/*table-layout:fixed;*/}
img,iframe{border:none;}
img{vertical-align: top;-ms-interpolation-mode: bicubic;/*ie7防止图片缩小失真的*/}
/*---------竖向菜单（非必需）---------*/
.bl-vernav li{ border-bottom:1px solid #ddd; margin-bottom:-1px;padding-top:1px;}
.bl-vernav a{ display:block; height:20px; line-height:20px; padding:10px 16px;}
.bl-vernav a:hover{ background:#F8F8F8;text-decoration:none;}
/*.bl-vernav .cur a{ background:#428BCA; color:#fff;}*/

.bl-vernav-ord{ border:1px solid #ddd;}

.vernav-level li li{ border-left:none;border-right:none;}
.vernav-level li li a{ padding-left:40px;}
.vernav-level .cur .one{ background:#F8F8F8; 	}
.vernav-level li .cur a{ background:#F8F8F8;	}

/*diy*/
	.bl-vernav-warp{ position:relative;}
	.bl-vernav-warp .auxline{ position:absolute; left:-6px; top:0; z-index:1;line-height:0; font-size:0;
		border-left:#FF5F3E solid 7px; background-color:#F8F8F8;}
	.bl-vernav{ position:relative; z-index:2;}
	.bl-vernav a:hover{ background-color:transparent;}


/*下面这两端是演示用的和整个功能没有必然关系 ，你可以使用你自己的 字体字号颜色设置*/
.demobox{ width:100%; font-size:14px; color:#333;
font-family:'Hiragino Sans GB','Microsoft Yahei',"WenQuanYi Micro Hei",SimSun,Tahoma,Arial,Helvetica,STHeiti;}
a{ color:#333; text-decoration:none;}

/* 表样式文件 */
table{border-collapse:collapse;border-spacing:0;border-left:1px solid #888;border-top:1px solid #888;margin-bottom: 30px;border-left:30px}
th,td{border-right:1px solid #888;border-bottom:1px solid #888;padding:5px 15px;}
th{font-weight:bold;background:#ccc;}
</style>

</head>

<body style="padding:50px;">
<div class="demobox" style="float:left">
    <div class="bl-vernav-warp">
    	<div class="auxline"></div>
        <ul class="bl-vernav vernav-level">
            <li><a href="#" class="one">导航菜单</a></li>
            #{tree}
        </ul>
    </div>
</div>
<div style="float:left">
    <div>
        <div style="color:red">
        注意: 统一返回JSON结构，每个接口都返回同一数据结构 {"code":0,"result":结构返回内容} <br>
        code:等于0代表操作成功，非0代表错误码。<br>
        例如:{"code":0,"result":{"name":"张三","age":38}}<br>
        所有请求统一使用POST<br>
        以下接口返回内容定义的是result的属性结构。
        <br/>
        <br/>
            图片：所有图片的格式都使用JSON字符串  例如 "{"width":1024, "high":768,"url":"http://*******","type":"jpg"}"
        <br/>
        <br/>
        </div>
    </div>

    #{body}
</div>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
$(function(){
	var verNav = $(".bl-vernav"),
		line = verNav.siblings(".auxline")
		verNavFisrt = verNav.children("li:first-child"),
		curY = verNav.children("li.cur").position().top;

	line.height(verNavFisrt.outerHeight()-1).width(verNavFisrt.outerWidth());//设置辅助线初始化高度和宽度，也可以直接用css设置好，这里就不用js计算了

	verNav.find("li").mouseenter(function(){
		var thisY = $(this).position().top;
		line.stop(true,true).animate({top:thisY},200);
		return false
	})
	.end()
	.mouseleave(function(){
		line.stop(true,true).animate({top:curY},300)
	}).trigger("mouseleave");
});
</script>
</body>
</html>